//
//  MHSetCirclePriceViewModel.m
//  MiaoCircle
//
//  Created by 许正荣 on 2018/4/19.
//  Copyright © 2018年 acgera. All rights reserved.
//

#import "MHSetCirclePriceViewModel.h"


@implementation MHSetCirclePriceViewModel
-(void)initialize
{
    [super initialize];
    self.rightTitle = @"下一步";
    self.title = @"创建付费圈子";
    @weakify(self);
    self.nextCommand =[[RACCommand alloc] initWithSignalBlock:^RACSignal *(NSIndexPath * indexPath) {
        @strongify(self);
        MHSetCircleInfoViewModel *viewModel = [[MHSetCircleInfoViewModel alloc] initWithServices:self.services params:@{MHViewModelUtilKey:self.info,MHViewModelIsCreate :@(true)}];
        [self.services pushViewModel:viewModel animated:YES];
        return [RACSignal empty];
    }];
}

- (instancetype)initWithServices:(id<MHViewModelServices>)services params:(NSDictionary *)params{
    if (self = [super initWithServices:services params:params]) {
        self.info = params[MHViewModelUtilKey];
    }
    return self;
}
@end
